<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'csv-import-setting-form',
    'enableAjaxValidation'=>false,
)); ?>

<p class="note"><?php echo Yii::t('site','Fields with {marker} are required.',array('{marker}'=>'<span class="required">*</span>')); ?></p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model,'name'); ?>
        <?php echo $form->textField($model,'name',array('size'=>30,'maxlength'=>30)); ?>
        <?php echo $form->error($model,'name'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'csvFieldSeparator'); ?>
        <?php echo $form->textField($model,'csvFieldSeparator',array('size'=>3,'maxlength'=>3)); ?>
        <?php echo $form->error($model,'csvFieldSeparator'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'truncateTable'); ?>
        <?php echo $form->textField($model,'truncateTable'); ?>
        <?php echo $form->error($model,'truncateTable'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'skipFirstNLines'); ?>
        <?php echo $form->textField($model,'skipFirstNLines'); ?>
        <?php echo $form->error($model,'skipFirstNLines'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'loadNLines'); ?>
        <?php echo $form->textField($model,'loadNLines'); ?>
        <?php echo $form->error($model,'loadNLines'); ?>
    </div>

    <div class="row buttons">
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>$model->isNewRecord?Yii::t('site','Create'):Yii::t('site','Save'),
				'linkTitle'=>$model->isNewRecord?Yii::t('site','Create this record'):Yii::t('site','Save this record'),
				'formID' => 'csv-import-setting-form',
				'buttonType' => 'save'
		)); ?>
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>Yii::t('site','Reset'),
				'linkTitle'=>Yii::t('site','Reset the form data'),
				'formID' => 'csv-import-setting-form',
				'buttonType' => 'reset',
				'confirm' => Yii::t('site','Really reset this form?')
		)); ?>
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>Yii::t('site','Cancel'),
				'linkTitle'=>Yii::t('site','Cancel editing, back to list'),
				'formID' => 'csv-import-setting-form',
				'buttonType' => 'cancel',
				'confirm' => Yii::t('site','Really cancel editing this item?'),
				'url' => array('csvimportsetting/index')
		)); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->
